<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="/Public/Admin/css/pintuer.css">
<link rel="stylesheet" href="/Public/Admin/css/admin.css">
<script src="/Public/Admin/js/jquery.js"></script>
<script src="/Public/Admin/js/pintuer.js"></script>
</head>
<body>
<form method="post" action="{:U('Machine/dels')}" id="listform">
  <div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 伦卡流量宝列表</strong>
    <div class="padding border-bottom">
      <ul class="search" style="padding-left:10px;">
        <li> <a class="button border-main icon-plus-square-o" href="{:U('Machine/add')}"> 增加伦卡流量宝</a> </li>
      </ul>
    </div>
    <table class="table table-hover text-center">
      <tr>
        <th width="100" style="text-align:left; padding-left:20px;">ID</th>
		<th>伦卡流量宝名称</th>
		<th>伦卡流量宝价格</th>
		<th>伦卡流量宝每日收益</th>
		<th>伦卡流量宝几天回本</th>
        <th>状态</th>
        <th width="310">操作</th>
      </tr>
      <volist name="list" id="vo">
        <tr>
          <td style="text-align:left; padding-left:20px;"><input type="checkbox" name="id[]" value="{$vo.lk_id}" />
           {$vo.lk_id}</td>
		   
		   <td>{$vo.name}</td>
		   <td><a href='{$vo.jump_url}'>{$vo.price}</a></td>
		   <td>{$vo.income}</td>
          <td>{$vo.recovery}</td>
		   <td>{$vo.status}</td>
          <td><div class="button-group"> <a class="button border-main" href="{:U('Machine/add',array('lk_id'=>$vo['lk_id']))}"><span class="icon-edit"></span> 修改</a> <a class="button border-red" href="{:U('Machine/dels',array('id'=>$vo['lk_id']))}" onclick="return confirm('确认删除吗？')"><span class="icon-trash-o"></span> 删除</a> </div></td>
        </tr>
   		</volist>
      <tr>
        <td style="text-align:left; padding:19px 0;padding-left:20px;"><input type="checkbox" id="checkall"/>
          全选 </td>
        <td colspan="7" style="text-align:left;padding-left:20px;"><a href="javascript:void(0)" class="button border-red icon-trash-o" style="padding:5px 15px;" onclick="DelSelect()"> 删除</a></td>
          
      </tr>
      <tr>
        <td colspan="8"><div class="pagelist">{$page}</div></td>
      </tr>
    </table>
  </div>
</form>
<script type="text/javascript">
//全选
$("#checkall").click(function(){ 
  $("input[name='id[]']").each(function(){
	  if (this.checked) {
		  this.checked = false;
	  }
	  else {
		  this.checked = true;
	  }
  });
})

//批量删除
function DelSelect(){
	var Checkbox=false;
	 $("input[name='id[]']").each(function(){
	  if (this.checked==true) {		
		Checkbox=true;	
	  }
	});
	if (Checkbox){
		var t=confirm("您确认要删除选中的内容吗？");
		if (t==false) return false;		
		$("#listform").submit();		
	}
	else{
		alert("请选择您要删除的内容!");
		return false;
	}
}
</script>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>